<div class="nav-sub w1180">
	<ul class="zoom">
		<li><a href="/crm/customer/list">客户列表</a></li>
		<li><a class="on" href="/crm/customer/feedback">留言管理</a></li>
	</ul>
</div>
<div class="main-ct w1180">
	<div class="top-bar">
		<div class="custom-search">
			<label>用户ID<input type="text" class="tp-txt" id="user_id"></label>
			<label>用户名称<input type="text" class="tp-txt" id="user_name"></label>
			<label>开始日期<input style="width:95px;" id="start_time" type="text" class="tp-txt" onFocus="WdatePicker({isShowClear:true,readOnly:true})"></label>
			<label>结束日期<input style="width:95px;" id="end_time" type="text" class="tp-txt" onFocus="WdatePicker({isShowClear:true,readOnly:true})"></label>
			<a href="javascript:search();" class="btn-cs btn-search ml5">查 询</a>
			<a href="/crm/customer/excel-feedback" class="btn-cs btn-green ml5">输出报表</a>
		</div>
	</div>
<div id="list-table"></div>
</div>
<script src="/plugins/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
    var user_id='';
    var user_name='';
    var start_time='';
    var end_time='';
    var page=1;
    
    $(document).ready(function(){
    	ajaxListTable();
    });
    
    function search(){
    	user_id = $("#user_id").val();
    	user_name = $("#user_name").val();
    	start_time = $("#start_time").val();
    	end_time = $("#end_time").val();
    	ajaxListTable();
    }
   
    function ajaxListTable(){
    	$.ajax({
            type: "post",
            url: "<?php echo $this->url('crm/customer',
                array('action'=>'ajax-feedback-list'));?>",
            dataType:'html',
            data: { 
                "user_id": user_id, 
                "user_name": user_name, 
                "start_time": start_time, 
                "end_time": end_time, 
    			"page":page
    		},
            cache: false,
            timeout:10000, 
            error: function(){
              	 alert('请求超时，请重新操作');
               	 isPost = false;
                 return false; 
             }, 
            success: function(html){
            	$("#list-table").html(html);
            }
        });
    }

</script>